﻿using B.S.BaseData.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.BaseData.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class BaseDbContext : DbContext
    {
        public BaseDbContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 商品名称列表
        /// </summary>
        public DbSet<GoodsType> GoodsType { get; set; }

        /// <summary>
        /// 商品信息列表
        /// </summary>
        public DbSet<GoodsInfo> GoodsInfo { get; set; }
         
        /// <summary>
        /// 养殖信息列表
        /// </summary>
        public DbSet<BreedingInfo> BreedingInfo { get; set; }

        /// <summary>
        /// 保健信息表
        /// </summary>
        public DbSet<HealthInfo> HealthInfo { get; set; }

        /// <summary>
        /// 企业信息表
        /// </summary>
        public DbSet<EterpriseInfo> EterpriseInfo { get; set; }
        
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<ButcherInfo> ButcherInfo { get; set; }

        /// <summary>
        /// 屠宰信息企业表
        /// </summary>
        public DbSet<Butcher_EterpriseInfo> Butcher_EterpriseInfo { get; set; }

        /// <summary>
        /// 深加工供应商信息表
        /// </summary>
        public DbSet<Process_ProviderInfo> Process_ProviderInfo { get; set; }

        /// <summary>
        /// 深加工企业信息表
        /// </summary>
        public DbSet<Process_EnterpriseInfo> Process_EnterpriseInfo { get; set; }

        /// <summary>
        /// 公共图片表
        /// </summary>
        public DbSet<PublicImg> PublicImg { get; set; }
    }
}